package com.kaiwukj.android.ufamily.mvp.http.entity.result;

public class OrderDetailResult extends OrderResult {

    /**
     * "id": 73,
     * "orderNum": "JYL01589523845878342",
     * "serviceName": "空调清洗",
     * "serviceType": "1",
     * "serviceParameterId": 95,
     * "serviceParameterName": "深度清洗",
     * "userName": "楚云飞",
     * "userPhone": "17607092263",
     * "communityName": "开物小区1",
     * "address": "梦时代7号楼909909",
     * "appointmentTime": "2020-05-15 17:23:48",
     * "paymentTime": "2020-05-15 14:24:12",
     * "paymentType": 0,
     * "remarks": null,
     * "status": 0,
     * "exceptionStatus": 0,
     * "refundStatus": 0,
     * "createTime": "2020-05-15 14:24:12",
     * "serviceEmpName": null,
     * "serviceEmpPhone": null
     */

    private String userName;
    private String userPhone;
    private String communityName;
    private String address;
    private String paymentTime;
    private Integer paymentType;//支付类型 0：其他 1：支付宝 2：微信 3：银联 4：账户余额
    private String remarks;
    private String serviceEmpName;
    private String serviceEmpPhone;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPhone() {
        return userPhone;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }


    public String getUnitPriceStr() {
        return getFormatPrice(getUnitPrice());
    }

    public String getCommunityName() {
        return communityName;
    }

    public void setCommunityName(String communityName) {
        this.communityName = communityName;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPaymentTime() {
        return paymentTime;
    }

    public void setPaymentTime(String paymentTime) {
        this.paymentTime = paymentTime;
    }

    public Integer getPaymentType() {
        return paymentType;
    }

    public void setPaymentType(Integer paymentType) {
        this.paymentType = paymentType;
    }

    public String getPayTypeStr() {
        switch (getPaymentType()) {
            case 1:
                return "支付宝";
            case 2:
                return "微信";
            case 3:
                return "银联";
            case 4:
                return "账户余额";
            default:
                return "其他";
        }
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public String getServiceEmpName() {
        return serviceEmpName;
    }

    public void setServiceEmpName(String serviceEmpName) {
        this.serviceEmpName = serviceEmpName;
    }

    public String getServiceEmpPhone() {
        return serviceEmpPhone;
    }

    public void setServiceEmpPhone(String serviceEmpPhone) {
        this.serviceEmpPhone = serviceEmpPhone;
    }
}
